package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaCarType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OaCarTypeMapper {
    int deleteByPrimaryKey(Long pkCarTypeId);

    int insert(OaCarType record);

    int insertSelective(OaCarType record);

    OaCarType selectByPrimaryKey(Long pkCarTypeId);

    int updateByPrimaryKeySelective(OaCarType record);

    int updateByPrimaryKey(OaCarType record);

    List<OaCarType> selectAll(List<Long> list);

    int deleteAll(List<Long> list);

    List<OaCarType> findAll(@Param("carTypeName") String carTypeName, @Param("startDate") String startTime, @Param("endDate") String endTime);

    Long rowCount(@Param("carTypeName")String carTypeName, @Param("startDate") String startTime, @Param("endDate") String endTime);

    List<OaCarType> loadCarType(Long id);
}